package com.qf.sell_movie.pojo.respVo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Mr.Liu
 * @date 2022/1/17 11:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseData {
    private Integer code;

    private String msg;

    private Object data;

    private Long total;

    public ResponseData success(){
        return new ResponseData(0,"请求成功",null,null);
    }
    public ResponseData fail(){
        return new ResponseData(1,"请求失败",null,null);
    }
}
